﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ep_question_answer_check.aspx.cs"
    Inherits="ePioneer_ep_question_answer_check" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/table.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Javascript/jquery-1.4.2.src.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {

        });

        function Check(id, type) {
            $.post("ep_question.ashx?", { action: "AnswerCheck", id: id, type: type }, function (data) {
                if (data == "1") {
                    alert("审核成功")
                    window.location.href =window.location.href;
                }
                else {
                    alert("请重新再试");
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:DropDownList ID="ddl_IsCheck" runat="server">
        <asp:ListItem Value="0">审核不通过</asp:ListItem>
        <asp:ListItem Value="1">通过</asp:ListItem>
    </asp:DropDownList>
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查看" /><br />
    <div>
        <table border="0" align="left" cellpadding="3" cellspacing="0" style="width: 100%;
            border: 1px solid #337ABB;">
            <tr style="background: #337ABB;">
                <td>
                    问题代码
                </td>
                <td style="width: 40%">
                    回答
                </td>
                <td>
                    用户
                </td>
                <td>
                    是否结束
                </td>
                <td>
                    是否审核
                </td>
                <td>
                    操作
                </td>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr>
                        <td valign="top">
                            <%#Eval("question_id") == "" ? " " : Eval("question_id")%>&nbsp;
                        </td>
                        <td valign="top">
                            <%#Eval("Answer") == "" ? " " : Eval("Answer")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("UserId") == "" ? " " : Eval("UserId")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("IsChose") == "" ? "0" : Eval("IsChose")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("IsCheck") == "" ? "0" : Eval("IsCheck")%>&nbsp;
                        </td>
                        <td>
                            <a href="javascript:void(0)" onclick="Check( <%#Eval("id")%>,1)">通过</a>&nbsp;<a href="javascript:void(0)"
                                onclick="Check( <%#Eval("id")%>,0)">不通过</a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        &nbsp;
    </div>
    </form>
</body>
</html>
